import re

if __name__ == '__main__':
    str='麻花疼的qq是1000，老刘的qq号19328954，侯姝彤的qq是219461789，彭毓歆的QQ是93882732，沈佳楠的qq是919948843'
    str+="廖煜轩的qq87329111，丸子雄的qq42929922"
    reg=r'\d{5,}'
    #从str中提取QQ号
    result=re.findall(reg,str,re.M|re.I)
    for x in result:
        print(x)